package com.github.rxyor.ddd.service.domain.factory;

import com.github.rxyor.ddd.service.domain.model.Order;
import com.github.rxyor.ddd.service.interfaces.repository.OrderRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2019/10/3 周四 16:27:00
 * @since 1.0.0
 */
@AllArgsConstructor
@Component
public class OrderFactory {

    private final OrderRepository orderRepository;

    public Order createOrder() {
        return new Order(orderRepository);
    }

}
